<template>
  <div>
    <button @click="start">启动</button>
    <button @click="monitor">监控</button>
    <button @click="hmi">图形</button>
    <button @click="logout">登出</button>
  </div>
</template>

<script setup>

import { useRouter } from 'vue-router';

const router = useRouter();

const start = () =>{
  console.log("start");
}
const monitor = () =>{
  console.log("monitor");

  router.push('/monitor');
}
const hmi = () =>{
  console.log("hmi");
}
const logout = () =>{
  console.log("logout");
}

</script>

